define(function(require, exports, module) {
	"use strict";

	var baseService = require('Base_Service');
	// 控制器名
	exports.controller = "Signs";
	
	/* 签到 */
	exports.add = function(data ,success) {
		return baseService.post(
			baseService.getApiUrl(exports.controller, "Add"),
			data,
			function(retval) {
				success && success(retval);
			}
		);
	};
	
	/**
	 * 预约记录
	 * @param {Object} currpage
	 * @param {Object} pageSize
	 * @param {Object} success
	 */
	exports.signsList = function(currpage,pageSize,success){
		
		var data = {
			pageIndex: currpage,
			pageSize: pageSize,
		};
		return baseService.post(
			baseService.getApiUrl(exports.controller,'List')	,
			data,
			function(retval){
				success && success(retval);
			}
		);
	}
	
});